package com.humanresource.domain.po.clerkrecord;

import java.util.ArrayList;
import java.util.List;

public class ClerkrecordsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ClerkrecordsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRecordsidIsNull() {
            addCriterion("RecordsId is null");
            return (Criteria) this;
        }

        public Criteria andRecordsidIsNotNull() {
            addCriterion("RecordsId is not null");
            return (Criteria) this;
        }

        public Criteria andRecordsidEqualTo(String value) {
            addCriterion("RecordsId =", value, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidNotEqualTo(String value) {
            addCriterion("RecordsId <>", value, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidGreaterThan(String value) {
            addCriterion("RecordsId >", value, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidGreaterThanOrEqualTo(String value) {
            addCriterion("RecordsId >=", value, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidLessThan(String value) {
            addCriterion("RecordsId <", value, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidLessThanOrEqualTo(String value) {
            addCriterion("RecordsId <=", value, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidLike(String value) {
            addCriterion("RecordsId like", value, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidNotLike(String value) {
            addCriterion("RecordsId not like", value, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidIn(List<String> values) {
            addCriterion("RecordsId in", values, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidNotIn(List<String> values) {
            addCriterion("RecordsId not in", values, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidBetween(String value1, String value2) {
            addCriterion("RecordsId between", value1, value2, "recordsid");
            return (Criteria) this;
        }

        public Criteria andRecordsidNotBetween(String value1, String value2) {
            addCriterion("RecordsId not between", value1, value2, "recordsid");
            return (Criteria) this;
        }

        public Criteria andClerkidIsNull() {
            addCriterion("ClerkId is null");
            return (Criteria) this;
        }

        public Criteria andClerkidIsNotNull() {
            addCriterion("ClerkId is not null");
            return (Criteria) this;
        }

        public Criteria andClerkidEqualTo(Integer value) {
            addCriterion("ClerkId =", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidNotEqualTo(Integer value) {
            addCriterion("ClerkId <>", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidGreaterThan(Integer value) {
            addCriterion("ClerkId >", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ClerkId >=", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidLessThan(Integer value) {
            addCriterion("ClerkId <", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidLessThanOrEqualTo(Integer value) {
            addCriterion("ClerkId <=", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidIn(List<Integer> values) {
            addCriterion("ClerkId in", values, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidNotIn(List<Integer> values) {
            addCriterion("ClerkId not in", values, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidBetween(Integer value1, Integer value2) {
            addCriterion("ClerkId between", value1, value2, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidNotBetween(Integer value1, Integer value2) {
            addCriterion("ClerkId not between", value1, value2, "clerkid");
            return (Criteria) this;
        }

        public Criteria andBookeridIsNull() {
            addCriterion("BookerId is null");
            return (Criteria) this;
        }

        public Criteria andBookeridIsNotNull() {
            addCriterion("BookerId is not null");
            return (Criteria) this;
        }

        public Criteria andBookeridEqualTo(Integer value) {
            addCriterion("BookerId =", value, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridNotEqualTo(Integer value) {
            addCriterion("BookerId <>", value, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridGreaterThan(Integer value) {
            addCriterion("BookerId >", value, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridGreaterThanOrEqualTo(Integer value) {
            addCriterion("BookerId >=", value, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridLessThan(Integer value) {
            addCriterion("BookerId <", value, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridLessThanOrEqualTo(Integer value) {
            addCriterion("BookerId <=", value, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridIn(List<Integer> values) {
            addCriterion("BookerId in", values, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridNotIn(List<Integer> values) {
            addCriterion("BookerId not in", values, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridBetween(Integer value1, Integer value2) {
            addCriterion("BookerId between", value1, value2, "bookerid");
            return (Criteria) this;
        }

        public Criteria andBookeridNotBetween(Integer value1, Integer value2) {
            addCriterion("BookerId not between", value1, value2, "bookerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridIsNull() {
            addCriterion("CheckerId is null");
            return (Criteria) this;
        }

        public Criteria andCheckeridIsNotNull() {
            addCriterion("CheckerId is not null");
            return (Criteria) this;
        }

        public Criteria andCheckeridEqualTo(Integer value) {
            addCriterion("CheckerId =", value, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridNotEqualTo(Integer value) {
            addCriterion("CheckerId <>", value, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridGreaterThan(Integer value) {
            addCriterion("CheckerId >", value, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridGreaterThanOrEqualTo(Integer value) {
            addCriterion("CheckerId >=", value, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridLessThan(Integer value) {
            addCriterion("CheckerId <", value, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridLessThanOrEqualTo(Integer value) {
            addCriterion("CheckerId <=", value, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridIn(List<Integer> values) {
            addCriterion("CheckerId in", values, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridNotIn(List<Integer> values) {
            addCriterion("CheckerId not in", values, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridBetween(Integer value1, Integer value2) {
            addCriterion("CheckerId between", value1, value2, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCheckeridNotBetween(Integer value1, Integer value2) {
            addCriterion("CheckerId not between", value1, value2, "checkerid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(String value) {
            addCriterion("CreateTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(String value) {
            addCriterion("CreateTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(String value) {
            addCriterion("CreateTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("CreateTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(String value) {
            addCriterion("CreateTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(String value) {
            addCriterion("CreateTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLike(String value) {
            addCriterion("CreateTime like", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotLike(String value) {
            addCriterion("CreateTime not like", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<String> values) {
            addCriterion("CreateTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<String> values) {
            addCriterion("CreateTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(String value1, String value2) {
            addCriterion("CreateTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(String value1, String value2) {
            addCriterion("CreateTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andChecktimeIsNull() {
            addCriterion("CheckTime is null");
            return (Criteria) this;
        }

        public Criteria andChecktimeIsNotNull() {
            addCriterion("CheckTime is not null");
            return (Criteria) this;
        }

        public Criteria andChecktimeEqualTo(String value) {
            addCriterion("CheckTime =", value, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeNotEqualTo(String value) {
            addCriterion("CheckTime <>", value, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeGreaterThan(String value) {
            addCriterion("CheckTime >", value, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeGreaterThanOrEqualTo(String value) {
            addCriterion("CheckTime >=", value, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeLessThan(String value) {
            addCriterion("CheckTime <", value, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeLessThanOrEqualTo(String value) {
            addCriterion("CheckTime <=", value, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeLike(String value) {
            addCriterion("CheckTime like", value, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeNotLike(String value) {
            addCriterion("CheckTime not like", value, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeIn(List<String> values) {
            addCriterion("CheckTime in", values, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeNotIn(List<String> values) {
            addCriterion("CheckTime not in", values, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeBetween(String value1, String value2) {
            addCriterion("CheckTime between", value1, value2, "checktime");
            return (Criteria) this;
        }

        public Criteria andChecktimeNotBetween(String value1, String value2) {
            addCriterion("CheckTime not between", value1, value2, "checktime");
            return (Criteria) this;
        }

        public Criteria andAuditstateIsNull() {
            addCriterion("AuditState is null");
            return (Criteria) this;
        }

        public Criteria andAuditstateIsNotNull() {
            addCriterion("AuditState is not null");
            return (Criteria) this;
        }

        public Criteria andAuditstateEqualTo(String value) {
            addCriterion("AuditState =", value, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateNotEqualTo(String value) {
            addCriterion("AuditState <>", value, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateGreaterThan(String value) {
            addCriterion("AuditState >", value, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateGreaterThanOrEqualTo(String value) {
            addCriterion("AuditState >=", value, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateLessThan(String value) {
            addCriterion("AuditState <", value, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateLessThanOrEqualTo(String value) {
            addCriterion("AuditState <=", value, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateLike(String value) {
            addCriterion("AuditState like", value, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateNotLike(String value) {
            addCriterion("AuditState not like", value, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateIn(List<String> values) {
            addCriterion("AuditState in", values, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateNotIn(List<String> values) {
            addCriterion("AuditState not in", values, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateBetween(String value1, String value2) {
            addCriterion("AuditState between", value1, value2, "auditstate");
            return (Criteria) this;
        }

        public Criteria andAuditstateNotBetween(String value1, String value2) {
            addCriterion("AuditState not between", value1, value2, "auditstate");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNull() {
            addCriterion("IsDelete is null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNotNull() {
            addCriterion("IsDelete is not null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteEqualTo(String value) {
            addCriterion("IsDelete =", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotEqualTo(String value) {
            addCriterion("IsDelete <>", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThan(String value) {
            addCriterion("IsDelete >", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThanOrEqualTo(String value) {
            addCriterion("IsDelete >=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThan(String value) {
            addCriterion("IsDelete <", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThanOrEqualTo(String value) {
            addCriterion("IsDelete <=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLike(String value) {
            addCriterion("IsDelete like", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotLike(String value) {
            addCriterion("IsDelete not like", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIn(List<String> values) {
            addCriterion("IsDelete in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotIn(List<String> values) {
            addCriterion("IsDelete not in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteBetween(String value1, String value2) {
            addCriterion("IsDelete between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotBetween(String value1, String value2) {
            addCriterion("IsDelete not between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andUpdateridIsNull() {
            addCriterion("UpdaterId is null");
            return (Criteria) this;
        }

        public Criteria andUpdateridIsNotNull() {
            addCriterion("UpdaterId is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateridEqualTo(Integer value) {
            addCriterion("UpdaterId =", value, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridNotEqualTo(Integer value) {
            addCriterion("UpdaterId <>", value, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridGreaterThan(Integer value) {
            addCriterion("UpdaterId >", value, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridGreaterThanOrEqualTo(Integer value) {
            addCriterion("UpdaterId >=", value, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridLessThan(Integer value) {
            addCriterion("UpdaterId <", value, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridLessThanOrEqualTo(Integer value) {
            addCriterion("UpdaterId <=", value, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridIn(List<Integer> values) {
            addCriterion("UpdaterId in", values, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridNotIn(List<Integer> values) {
            addCriterion("UpdaterId not in", values, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridBetween(Integer value1, Integer value2) {
            addCriterion("UpdaterId between", value1, value2, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdateridNotBetween(Integer value1, Integer value2) {
            addCriterion("UpdaterId not between", value1, value2, "updaterid");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(String value) {
            addCriterion("UpdateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(String value) {
            addCriterion("UpdateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(String value) {
            addCriterion("UpdateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("UpdateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(String value) {
            addCriterion("UpdateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(String value) {
            addCriterion("UpdateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLike(String value) {
            addCriterion("UpdateTime like", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotLike(String value) {
            addCriterion("UpdateTime not like", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<String> values) {
            addCriterion("UpdateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<String> values) {
            addCriterion("UpdateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(String value1, String value2) {
            addCriterion("UpdateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(String value1, String value2) {
            addCriterion("UpdateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}